<div class="container">
  <div class="stack">
    <input type="text" name="inputVal" [(ngModel)]="inputVal" required />

    <div class="btn_root">
      <button (click)="push()">Push</button>
      <button (click)="pop()">Pop</button>
      <button (click)="peek()">Peek</button>
      <button (click)="isEmpty()">IsEmpty</button>
      <button (click)="isFull()">IsFull</button>
    </div>
    <hr />

    <h3>{{ outPut }}</h3>

    @for (element of stack; track element) {
      <div class="stackElement">
        <p>{{ element }}</p>
      </div>
    }
  </div>
</div>
